<script setup>
import CommonAside from '@/components/commonAside.vue'
import CommonHeader from '@/components/commonHeader.vue'
</script>

<template>
  <div class="common-layout">
    <el-container class="lay-container">
      <!-- 自定义左侧组件 -->
      <CommonAside />
      <el-container>
        <!-- 头部组件 -->
        <el-header style="padding: 0">
          <CommonHeader />
        </el-header>
        <!-- tab组件 -->
        <!--        <commonTag />-->
        <!-- 主要内容区-->
        <el-main class="right-main" style="width: 100%; height: 100%">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="less">
html,
body,
#app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.common-layout,
.lay-container {
  height: 100%;
}

.right-main {
  padding: 0;
}

.el-header {
  width: 100%;
}
</style>
